Skip to content

0.10.19: Set the published decode rate only from requests of 32 or more tokens - #2626

Draft
jonathan308 wants to merge 1 commit into
fix/decode-ewma-idle-agefrom
fix/decode-rate-min-tokens
Draft

jonathan308 wants to merge 1 commit into
fix/decode-ewma-idle-agefrom
fix/decode-rate-min-tokens

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

For 0.10.19, on top of #2569. To be reworked before it is ready: a slot whose requests are all under 32 tokens must still get a first decode rate (deadline admission needs one), and the published rate must not alternate with an omitted one under the 30-minute idle age. Routing accuracy: a short reply no longer sets the decode rate a Mac publishes.

Why

A slot publishes one decode rate (observed_decode_tps), an EWMA of every completed request's measured rate. A request of a few tokens measures mostly its first steps or its tail, so one short reply could pull a Mac that measured 80–100 tok/s down to about 11, and routing then ranked it behind slower Macs.

Change

  • In recordPerformanceFinish, a request that generated fewer than 32 tokens no longer updates the published rate, its age or the deadline decode rate (EngineV2Bridge.minimumPublishedDecodeTokens, matching the coordinator's own completion_tokens >= 32 convention).
  • It still counts in its prompt-size bucket and in generated work. Calibration samples are unchanged.
  • A slot that has served only short requests publishes no decode rate, exactly as a slot with no samples does today; the coordinator prices it from its profile or the fleet.
  • At 32 tokens and above the EWMA math and the published value are unchanged.
  • No output change; no switch. Its interplay with Stop advertising a stale decode rate from an idle slot #2569: a short request also does not refresh the rate's age, so it cannot keep an old stacked rate published on an idle slot.

Tests


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

A request that generated fewer than 32 tokens no longer updates the slot's
published decode rate (observed_decode_tps), its age or the deadline decode
rate; it still counts in its prompt-size bucket and in generated work. One
short reply could pull a Mac measuring 80-100 tok/s down to about 11.
Existing tests that drove the rate with short requests now use 33-201 tokens
with the same rates and step shapes.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 24, 2026 7:13am UTC
darkbloom-status Ready Ready Preview Nov 24, 2026 7:13am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 24, 2026 7:13am UTC

Request Review

@jonathan308 jonathan308 added run-ci Trigger one-shot PR CI run (auto-removed when run starts) run-release-ci One-shot: run SDK 27 release and qualification on this PR (removed when the run starts) labels Nov 24, 2026
@github-actions github-actions Bot removed run-release-ci One-shot: run SDK 27 release and qualification on this PR (removed when the run starts) run-ci Trigger one-shot PR CI run (auto-removed when run starts) labels Nov 24, 2026
@jonathan308
jonathan308 marked this pull request as draft November 24, 2026 07:22
@jonathan308 jonathan308 changed the title Set the published decode rate only from requests of 32 or more tokens 0.10.19: Set the published decode rate only from requests of 32 or more tokens Nov 24, 2026

This branch was successfully deployed

3 active deployments
Preview – d-inference-landing — aa193d5f Deployed Nov 24, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — aa193d5f Deployed Nov 24, 2026 by vercel[bot]
Preview – darkbloom-status — aa193d5f Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant